#!/bin/sh

jarname="sparkdriver.jar"
localdir="/home/zzd/program/spark/"
target="${localdir}${jarname}"
remotehost="192.168.1.99" #自己开发机的IP
username="alex" #自己开发机用户名linux是zhengze
echo "execute ...."
if [ $? == 0 ]; then
	sc="spark-submit --class driver.Driver  ${target}"
	echo "begin job ==> ${sc}"
	eval $sc
	

fi

